import React, { Component } from 'react'
import { BrowserRouter, Routes, Route } from 'react-router-dom'
import imgUrl from './imgs/welcome.gif'
import User from './pages/Setting/User'
import Main from './pages/Main'
import LoginPage from './pages/Login'
import FirstCheck from './pages/ReportForm/FirstCheck'
import Volunteer from './pages/Setting/Volunteer'
import Driver from './pages/Setting/Dirver'
import Edit from './pages/Setting/EditPerson'
import TwiceCheck from './pages/ReportForm/TwiceCheck'
import BloodCount  from './pages/BloodCount'
import SearchForm from './pages/SearchForm'
import CreateRecord from './pages/BloodRepoisty/CreateRecord'
import Daily from './pages/BloodRepoisty/DailyForm'
import CreateDeliRecord from './pages/DeliveryCenter/CreateDeliRecord'

export default (
    <BrowserRouter>
        <Routes>
            <Route path='/login' element={<LoginPage />} />
            <Route path='/' element={<Main />}>
                <Route index element={<img src={imgUrl} style={{ width: '100%' }} />} />
                <Route path='/setting/work' element={<User/>} />
                <Route path='/setting/volunteer' element={<Volunteer/>}/>
                <Route path='/setting/deliver' element={<Driver/>}/>
                {/* <Route path='/setting/edit' element={<Edit/>}/> */}
                <Route path='/firstCheck' element={<FirstCheck/>}/>
                <Route path='/twiceCheck' element={<TwiceCheck/>}/>
                <Route path='/search' element={<SearchForm/>}/>
                <Route path='/repoistory/create' element={<CreateRecord/>}/>
                <Route path='/repoistory/form' element={<Daily/>}/>
                <Route path='/business' element={<BloodCount/>}/>
                <Route path='/task/new' element={<CreateDeliRecord/>}/>
                <Route path='/task/list' element={''}/>
                <Route path='/mytask' element={''}/>
                <Route path='/progress' element={''}/>
                <Route path='/volunteer/examine' element={''}/>
                <Route path='/volunteer/apply' element={''}/>
                <Route path='/volunteer/applyForm' element={''}/>
            </Route>
            {/* <Route path='/setting/work'  element={<User/>}>
                 <Route path='/setting/edit' element={<Edit/>}/>
            </Route> */}
            
        </Routes>
    </BrowserRouter>
)
